﻿using System;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Services;
using YaAppoint.Response;

namespace YaAppoint.TextTemplates
{
    [RemoteService(isEnabled: false)]
    public interface ITextTemplateAppService:IApplicationService
    {
        BackJson GetTypeOptions();

        Task<BackJson> GetTemplateList(string? filterName,TemplateType? type);

        Task<BackJson> GetDetail(Guid id);

        Task<BackJson> Delete(Guid id);

        Task<BackJson> SubmitCreate(CreateTextTemplateDto dto);

        Task<BackJson> SubmitEdit(TextTemplateDto dto);
    }
}
